import request from '@/utils/request'

// 查询项目订单列表
export function listOrderinfo(query) {
  return request({
    url: '/business/apply/list',
    method: 'get',
    params: query
  })
}

// 查询项目订单详细
export function getOrderinfo(id) {
  return request({
    url: '/business/apply/' + id,
    method: 'get'
  })
}

// 新增项目订单
export function addOrderinfo(data) {
  return request({
    url: '/business/apply',
    method: 'post',
    data: data
  })
}

// 修改项目订单
export function updateOrderinfo(data) {
  return request({
    url: '/business/apply',
    method: 'put',
    data: data
  })
}

// 删除项目订单
export function delOrderinfo(id) {
  return request({
    url: '/business/apply/' + id,
    method: 'delete'
  })
}

// 导出项目订单
export function exportOrderinfo(query) {
  return request({
    url: '/business/apply/export',
    method: 'get',
    params: query
  })
}